package my.soft.aiteacher.teacher.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 文件分片记录表
 * </p>
 *
 * @author GMCX
 * @since 2025-05-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("file_chunk")
@Builder
public class FileChunk implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private Long fileId;

    /**
     * 分片索引(从0开始)
     */
    private Integer chunkIndex;

    /**
     * 分片MD5值
     */
    private String chunkMd5;

    /**
     * 分片大小(字节)
     */
    private Long chunkSize;

    /**
     * 分片存储路径
     */
    private String chunkPath;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    private String chunkName;


}
